﻿using System;

namespace Ganss.Excel.Tests.Data
{
    class NestedProductMapped
    {
        public string N { get; set; }
        public int Num { get; set; }
        public decimal P { get; set; }
        public NestedOfferMapped O { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is not NestedProductMapped o) return false;
            return o.N == N && o.Num == Num && o.P == P && o.O.Equals(O);
        }

        public override int GetHashCode()
        {
            return HashCode.Combine(N, Num, P, O);
        }
    }
}